package com.star.news.struct;

import com.star.news.dto.NewsCollectSaveDTO;
import com.star.news.dto.NewsSaveDTO;
import com.star.news.dto.NewsUpdateDTO;
import com.star.news.entity.News;
import com.star.news.entity.NewsCollect;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author lintianyi
 */
@Mapper
public interface NewsCollectStruct {
    NewsCollectStruct INSTANCE = Mappers.getMapper(NewsCollectStruct.class);


    /**
     * to Role
     *
     * @param dto dto
     * @return {@link NewsCollect}
     */
    NewsCollect to(NewsCollectSaveDTO dto);


}
